package com.iknow.xmpp.service;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import com.iknow.util.StringUtil;
import org.jivesoftware.smack.util.StringUtils;

public class Friend
  implements Parcelable
{
  public static Parcelable.Creator<Friend> CREATOR = new Parcelable.Creator()
  {
    public Friend createFromParcel()
    {
      return new Friend(paramParcel, null);
    }

    public Friend[] newArray()
    {
      return null;
    }
  };
  private String mBMyFriend;
  private String mDescription;
  private float mDistance;
  private String mEmail;
  private String mFavoriteCount = "0";
  private String mGender;
  private String mID;
  private String mImageUrl;
  private String mIndentityTags;
  private String mLastPosition;
  private double mLatitude;
  private double mLongitude;
  private String mName;
  private String mQingBoCount;
  private String mRosterCount;
  private String mSignature;
  private String mSubscribeTag;
  private String mWordCount = "0";

  private Friend(Parcel paramParcel)
  {
    this.mQingBoCount = "0";
    this.mRosterCount = "0";
    this.mBMyFriend = "0";
    this.mID = paramParcel.readString();
    this.mEmail = paramParcel.readString();
    this.mName = paramParcel.readString();
    this.mImageUrl = paramParcel.readString();
    this.mDescription = paramParcel.readString();
    this.mSignature = paramParcel.readString();
    this.mGender = paramParcel.readString();
    this.mFavoriteCount = paramParcel.readString();
    this.mWordCount = paramParcel.readString();
    this.mLongitude = paramParcel.readDouble();
    this.mLatitude = paramParcel.readDouble();
    this.mBMyFriend = paramParcel.readString();
    this.mDistance = paramParcel.readFloat();
    this.mLastPosition = paramParcel.readString();
    this.mIndentityTags = paramParcel.readString();
    this.mQingBoCount = paramParcel.readString();
    this.mRosterCount = paramParcel.readString();
    this.mSubscribeTag = paramParcel.readString();
  }

  public Friend(Contact paramContact)
  {
    this.mQingBoCount = "0";
    this.mRosterCount = "0";
    this.mBMyFriend = "0";
    this.mID = StringUtils.parseName(paramContact.getJIDWithRes());
    this.mName = paramContact.getName();
    this.mEmail = "";
    this.mImageUrl = "";
    this.mDescription = "";
    this.mSignature = "";
    this.mGender = "";
    this.mFavoriteCount = "";
    this.mWordCount = "";
    this.mSubscribeTag = "";
  }

  public Friend(String paramString1, String paramString2, String paramString3)
  {
    this.mQingBoCount = "0";
    this.mRosterCount = "0";
    this.mBMyFriend = "0";
    this.mID = paramString1;
    this.mName = paramString2;
    this.mImageUrl = paramString3;
  }

  public Friend(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7, String paramString8, String paramString9, String paramString10)
  {
    this.mQingBoCount = "0";
    this.mRosterCount = "0";
    this.mBMyFriend = "0";
    this.mID = paramString1;
    this.mEmail = paramString2;
    this.mName = paramString3;
    this.mImageUrl = paramString4;
    this.mDescription = paramString5;
    this.mSignature = paramString6;
    this.mGender = paramString7;
    this.mFavoriteCount = paramString8;
    this.mWordCount = paramString9;
    this.mSubscribeTag = paramString10;
  }

  public String IsMyFriend()
  {
    return this.mBMyFriend;
  }

  public int describeContents()
  {
    return 0;
  }

  public String getDes()
  {
    String str;
    if (!(StringUtil.isEmpty(this.mDescription)))
      str = this.mDescription;
    while (true)
    {
      return str;
      str = "iKnow五好青年";
    }
  }

  public float getDistance()
  {
    return this.mDistance;
  }

  public String getEmail()
  {
    return this.mEmail;
  }

  public String getFavCount()
  {
    return this.mFavoriteCount;
  }

  public String getGender()
  {
    return this.mGender;
  }

  public String getID()
  {
    return this.mID;
  }

  public String getImageUrl()
  {
    return this.mImageUrl;
  }

  public double getLatitude()
  {
    return this.mLatitude;
  }

  public double getLongitude()
  {
    return this.mLongitude;
  }

  public String getName()
  {
    String str;
    if (!(StringUtil.isEmpty(this.mName)))
      str = this.mName;
    while (true)
    {
      return str;
      str = "匿名";
    }
  }

  public String getPoision()
  {
    if (StringUtil.isEmpty(this.mLastPosition))
      this.mLastPosition = "未找到位置信息";
    return this.mLastPosition;
  }

  public String getQingboCount()
  {
    return this.mQingBoCount;
  }

  public String getRosterCount()
  {
    return this.mRosterCount;
  }

  public String getSignature()
  {
    String str;
    if (!(StringUtil.isEmpty(this.mSignature)))
      str = this.mSignature;
    while (true)
    {
      return str;
      str = "冥思苦想签名中...";
    }
  }

  public String getSubscribeTag()
  {
    return this.mSubscribeTag;
  }

  public String getTags()
  {
    return this.mIndentityTags;
  }

  public String getWordCount()
  {
    return this.mWordCount;
  }

  public void setDes(String paramString)
  {
    this.mDescription = paramString;
  }

  public void setDistance(float paramFloat)
  {
    this.mDistance = paramFloat;
  }

  public void setEmail(String paramString)
  {
    this.mEmail = paramString;
  }

  public void setFavCount(String paramString)
  {
    this.mFavoriteCount = paramString;
  }

  public void setGender(String paramString)
  {
    this.mGender = paramString;
  }

  public void setImageUrl(String paramString)
  {
    this.mImageUrl = paramString;
  }

  public void setIsMyFriend(String paramString)
  {
    this.mBMyFriend = paramString;
  }

  public void setLongitudeAndLatitude(double paramDouble1, double paramDouble2)
  {
    this.mLongitude = paramDouble1;
    this.mLatitude = paramDouble2;
  }

  public void setPoision(String paramString)
  {
    this.mLastPosition = paramString;
  }

  public void setQingboCount(String paramString)
  {
    this.mQingBoCount = paramString;
  }

  public void setRosterCount(String paramString)
  {
    this.mRosterCount = paramString;
  }

  public void setSignature(String paramString)
  {
    this.mSignature = paramString;
  }

  public void setTags(String paramString)
  {
    this.mIndentityTags = paramString;
  }

  public void setWordCount(String paramString)
  {
    this.mWordCount = paramString;
  }

  public void writeToParcel(Parcel paramParcel, int paramInt)
  {
    paramParcel.writeString(this.mID);
    paramParcel.writeString(this.mEmail);
    paramParcel.writeString(this.mName);
    paramParcel.writeString(this.mImageUrl);
    paramParcel.writeString(this.mDescription);
    paramParcel.writeString(this.mSignature);
    paramParcel.writeString(this.mGender);
    paramParcel.writeString(this.mFavoriteCount);
    paramParcel.writeString(this.mWordCount);
    paramParcel.writeDouble(this.mLongitude);
    paramParcel.writeDouble(this.mLatitude);
    paramParcel.writeString(this.mBMyFriend);
    paramParcel.writeFloat(this.mDistance);
    paramParcel.writeString(this.mLastPosition);
    paramParcel.writeString(this.mIndentityTags);
    paramParcel.writeString(this.mQingBoCount);
    paramParcel.writeString(this.mRosterCount);
    paramParcel.writeString(this.mSubscribeTag);
  }
}